package com.woniuxy.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.woniuxy.controller.form.ProjectNewroleForm;
import com.woniuxy.controller.form.ProjectroleStateForm;
import com.woniuxy.controller.info.ProjectroleInfo;
import com.woniuxy.model.ProjectRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.utils.MyException;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 马世亮
 * @since 2022-02-15
 */
public interface ProjectRoleService extends IService<ProjectRole> {

    boolean addprojectrole(ProjectNewroleForm projectNewroleForm) throws MyException;

    List<ProjectroleInfo> getRolesByPid();

    boolean changeroles(ProjectNewroleForm projectNewroleForm) throws JsonProcessingException, Exception;

    boolean changestate(ProjectroleStateForm projectroleStateForm);

    boolean removesome(List<Integer> list);

    List<ProjectroleInfo> getRoles();

    List<ProjectroleInfo> getManagerRole();
}
